package com.hibase.upms.service;

import com.hibase.upms.service.rolemenu.MdsRoleMenuService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

/**
 * @author chenfeng
 * @version 1.0
 * @date 2021/7/12 10:29
 * @des https://gitee.com/cheershi
 *
 * 初始化权限
 */
@Component
@Slf4j
public class InitPermission {

    @Autowired
    private MdsRoleMenuService mdsRoleMenuService;

    @PostConstruct
    public void init(){
        log.debug("进入权限初始化,初始化开始");
        mdsRoleMenuService.refresh();
        log.debug("进入权限初始化,初始化结束");
    }
}
